package com.msb.api.config;

import com.msb.common.constart.RabbitMQConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: lmf
 * @Create: 2025/3/11 20:13
 * @module 构建队列&交换机信息
 */
@Configuration
public class RabbitMQConfig {
    /**
     * 接口模块发送消息到队列模块的队列
     */
    @Bean
    public Queue preSendQueue() {
        return QueueBuilder.durable(RabbitMQConstants.SMS_PRE_SEND).build();
    }

}
